package com.sinosoft.cpyy.dao.master;

import com.sinosoft.cpyy.model.TestPaperTests;
import com.sinosoft.cpyy.model.vo.TestPaperTestsVo;

import java.util.List;

/**
 * 创建时间：2018/三月/27
 *
 * @author 张政[zhang_zheng@sinosoft.com.cn]
 * 类名：TestPaperTestsMapper
 * 描述：试卷题目DAO
 */
public interface TestPaperTestsMapper {
    int deleteByPrimaryKey(Integer testpaperTestsId);

    int insert(TestPaperTests record);

    int insertSelective(TestPaperTests record);

    TestPaperTests selectByPrimaryKey(Integer testpaperTestsId);

    int updateByPrimaryKeySelective(TestPaperTests record);

    int updateByPrimaryKey(TestPaperTests record);

    /**
     * 根据试卷id查询试卷试题
     *
     * @param testpaperId
     * @return
     */
    List<TestPaperTestsVo> findSelectTestPaperQuesion(int testpaperId);

    /**
     * 根据试卷id删除试卷试题表信息
     *
     * @param testpaperId
     * @return
     */
    int deleteTestPaperTestById(int testpaperId);

    /**
     * 添加试卷试题
     *
     * @param list
     * @return
     */
    int addTestPaperQuestion(List<TestPaperTests> list);
}